package cn.good.biz.service;


import cn.good.mapper.DeskMapper;
import cn.good.mapper.ServiceTypeMapper;
import cn.good.pojo.Desk;
import cn.good.pojo.ServiceType;
import cn.good.service.DictionariesService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Service(interfaceClass = DictionariesService.class)
@Component
public class DictionariesServiceImpl implements DictionariesService {

    @Resource
    private DeskMapper deskMapper;
    @Resource
    private ServiceTypeMapper serviceTypeMapper;

    /**
     * 查询科室信息
     * @param superiorId
     * @return
     */
    @Override
    public List<Desk> searchDeskListBySuperiorId(Integer superiorId) {
        return deskMapper.selectListBySuperiorId(superiorId);
    }

    /**
     * 查询服务列表
     * @return
     */
    @Override
    public List<ServiceType> searchServiceTypeListBySuperiorId() {
        return serviceTypeMapper.searchServiceTypeList();
    }
}
